import http from "@/utils/request";

export default{
    /**
     * 查询报表模板列表
     * @param  params 
     * @returns 
     */
    async getList(params){
        return await http.get("/api/dtbbInfo/list",params);
    },
    /**
     * 查询报表字段信息树形
     * @param  params 
     * @returns 
     */
    async getTreeList(params){
        return await http.get("/api/dtbbInfo/treeList",params);
    },
    /**
    * 添加
    * @returns
    */
    async add(params){
        return await http.post("/api/dtbbInfo/add",params)
    },
    /**
    * 修改
    * @returns
    */
    async update(params){
        return await http.put("/api/dtbbInfo/update",params)
    },

    //删除
    async delete(params) {
        return await http.delete('api/dtbbInfo/delete', params);
        
    },
    // //批量删除
    // async Bdelete(params) {
    //     return await http.post('/api/fdfxtrb/batchDelete', params);
           
    // }
}